#pragma once

#include <QWidget>
#include "ui_SettingWidget.h"

class SettingWidget : public QWidget
{
	Q_OBJECT

public:
	SettingWidget(QWidget *parent = Q_NULLPTR);
	~SettingWidget();

	void setNo(int no);

	QString ip();
	void setIp(QString ip);

	QString name();
	void setName(QString name);

	bool enable();
	void setEnable(bool flag);

	ushort addr();
	void setAddr(ushort addr);

	int deviceType();
	void setDeviceType(int type);

private:		
	Ui::SettingWidget ui;
};
